package com.zmn.plat.business.impl.channel;

import com.zmn.plat.business.interfaces.channel.ChannelWorkOrderVideoBService;
import com.zmn.plat.services.interfaces.channel.workorder.video.ChannelWorkOrderVideoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Objects;

/**
 * 描述:渠道订单配置BService
 *
 * @author linfeng
 * @since: 2020/12/16 16:27
 */
@Service
public class ChannelWorkOrderVideoBServiceImpl implements ChannelWorkOrderVideoBService {


    @Resource
    private ChannelWorkOrderVideoService channelWorkOrderVideoService;

    @Override
    public void copy(Integer originalChannelId, Integer targetChannelId, String operator) {

        channelWorkOrderVideoService.copy(originalChannelId, targetChannelId, operator);
    }

    @Override
    public void deleteByChannelId(Integer channelId) {
        if (Objects.isNull(channelId)) {
            return;
        }
        channelWorkOrderVideoService.deleteByChannelId(channelId);
    }
}
